<template>
  <div
    ref="exhibits16"
    @wheel.stop="handleScroll"
    class="jy-style-height Cultural-box"
    :class="{
      scrollType1: type,
      scrollType2: !type,
    }"
    :style="{
      'background-image': `url(${publicUrls + 'free/style5/copyrightBg1.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="Cultural-heard" :class="{ 'Cultural-heard1': type }">
      <i class="freeIcon" @click="blankHome">&#xe642;</i>
      <div class="heard-title">
        <i class="iconfonts">&#xe67c;</i>
        <span>展品图库</span>
        <i class="iconfonts">&#xe67c;</i>
      </div>
      <div class="percentage-text" id="percentage-text">
        <div class="screen">
          <div class="seach-Icon-dot" v-if="isMassage"></div>
          <i class="doorIcon" @click="visible = true" v-if="!store.isMobileType">&#xe666;</i>
        </div>
        <t-popup
          v-if="!store.isMobileType"
          :content="!type ? '宫格布局' : '横排布局'"
          placement="bottom"
          showArrow
          attach="#percentage-text"
        >
          <i class="freeIcon freeIcon-mg" style="margin-left: 22px" v-if="type" @click="type = false">&#xe65a;</i>
          <i class="freeIcon freeIcon-mg" style="margin-left: 22px" v-else @click="type = true">&#xe64d;</i>
        </t-popup>
      </div>
    </div>

    <div class="content-child">
      <component
        ref="scrollBox"
        :is="components"
        color="rgba(50, 43, 37, 1)"
        :scrollSrc="publicUrls + (type ? 'free/style5/pen2.png' : 'free/style5/pen.png')"
        v-if="type ? viewportwidth : viewportheight"
        :byid="type ? 9237 : 9527"
        :width="type ? getScrollWidth : getScrollHeight"
      >
        <!-- 内容 -->
        <template #[dynamicSlotName]>
          <div class="right-scroll" :class="{ 'right-type': !type, 'right-scroll-min': list.length <= 5 }">
            <div class="is-null" v-if="list.length === 0 && !loading">
              <img :src="publicUrls + 'free/style5/exbitNull.png'" alt="" />
              <span>暂无展品</span>
            </div>
            <div
              class="item-parent"
              :class="type ? 'item-parent-nowrap' : 'item-parent-wrap'"
              :style="{ marginRight: !type && (index + 1) % 4 === 0 ? '0px' : '' }"
              v-else
              @click="pathInfo(item.moduleId, item.id)"
              v-for="(item, index) in list"
              :key="item.id"
            >
              <div class="scroll-item">
                <div class="cover-img">
                  <img
                    class="cover-img-url"
                    :src="$filters.getLinkUrl(item.coverUrl, '?imageView2/3/w/564/h/540/format/webp')"
                    alt=""
                  />
                </div>
                <div class="cover-name">
                  {{ item.name }}
                </div>
              </div>
            </div>
            <div v-if="type">
              <div class="right-box"></div>
            </div>
          </div>
        </template>
        <!-- 滚动条 -->
        <template #[dynamicSlotChild]>
          <div class="solidBorder-child1" :class="!type && 'solidBorder-child2'"></div>
        </template>
      </component>
    </div>

    <t-drawer
      @close="init(2)"
      placement="right"
      :attach="exhibits16"
      v-model:visible="visible"
      show-in-attached-element
    >
      <div class="seach-box" id="seach-box-style3-id">
        <p class="seach-box-title">筛选和搜索</p>
        <div class="seach-items">
          <div class="input-box-left">
            <t-input @enter="seachValue" v-model="parmas.value" placeholder="输入展品名称查找" style="width: 100%">
            </t-input>
          </div>
          <div @click="seachValue" class="button-style">
            <span>搜索</span>
          </div>
        </div>
        <div class="seach-item">
          <span>单元</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="moduleListChange"
            v-model="parmas.ModuleId"
            placeholder=""
          >
            <t-option v-for="item in datas.moduleList" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>类型</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="select3Change"
            v-model="parmas.typeId"
            placeholder=""
          >
            <t-option v-for="item in datas.select3" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>年代</span>
          <t-cascader
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            v-if="clseaSelcet"
            @change="ageIdChange"
            placeholder=""
            v-model="parmas.ageId"
            :options="datas.select4"
            valueType="full"
            :keys="{
              value: 'id',
              children: 'children',
              label: 'text',
            }"
          />
        </div>
        <div class="seach-item">
          <span>单位</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="companyChange"
            v-model="parmas.CompanyId"
            placeholder=""
          >
            <t-option v-for="item in datas.company" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>级别</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="select1Change"
            v-model="parmas.levelId"
            placeholder=""
          >
            <t-option v-for="item in datas.select1" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="btn-box">
          <div @click="clear" class="btn-box-item1">
            <span>清空</span>
          </div>
          <div @click="seachInit" class="btn-box-item2">
            <span>筛选</span>
          </div>
        </div>
      </div>
    </t-drawer>
    <a
      :href="doorUrl"
      target="blank"
      class="logo-box"
      :style="{
        'background-image': `url(${publicUrls + 'free/style5/template5Logobg.png' + '?imageView2/3/format/webp'})`,
      }"
    ></a>
  </div>
  <MenuNavigation />
</template>

<script lang="ts">
// @ts-nocheck
export default defineComponent({
  name: 'style1',
});
</script>

<script setup lang="ts">
// @ts-nocheck
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';
import { publicUrls, filterHTML, doorUrl } from '@/utils/minxin';
import { useRouter, useRoute } from 'vue-router';
import { ref, watch, reactive, nextTick, computed, onActivated, defineComponent } from 'vue';
import { exhibitionData } from '@/api/templates/templates';
import { companysData, modulesData } from '@/api/templates/templates';
import { useProjectStore, commonDataStore } from '@/store';
import { storeToRefs } from 'pinia';
import ScrollBoxCom from '../scrollBox.vue';
import ScrollBoxCom2 from '../t5ScrollBoxUp.vue';
import { treeList } from '@/api/user/user';
import { exhibitShowpiece } from '@/api/templates/templates';

const clseaSelcet = ref(true);
const topShow = ref(false);
const scrollNumber = ref(0);
const heartbeat = ref(0); //页面心跳值
const Scrollwidth = ref();
const scrollheight = ref();
const exhibits16 = ref(null); //父元素挂在ref
const visible = ref(false);
const scrollBox = ref(null);
const percentage = ref(0);
const list = ref([]);
const cascader = ref(true);
const type = ref(true);
const total = ref(0);
const loading = ref(false);
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const datas = reactive({
  select1: [{ id: -1, text: '全部' }], //级别
  select2: [{ id: 0, text: '全部' }], //来源
  select3: [{ id: -1, text: '全部' }], //类型
  select4: [{ id: 0, text: '全部' }], //年代
  company: [], //单位
  moduleList: [], //单元
});
const parmasList = ref({
  typeId: '',
  ageId: '',
  levelId: '',
  ModuleId: '',
  CompanyId: '',
});
const isMobile = navigator.userAgent.match(
  /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
);
const info = ref({});
const previewId = ref(0); //当前选中查看展品id
const InfomoduleId = ref(0);
const selectModuleId = ref(1);
const selecttypeId = ref(-1);
const selectCompanyId = ref(-1);
const parmas = reactive({
  value: '',
  typeId: -1,
  ageId: [0],
  levelId: -1,
  ModuleId: 1,
  CompanyId: -1,
  pageNo: 1,
  pageSize: 300,
});

let viewportwidth = window.innerWidth;
Scrollwidth.value = (viewportwidth / 900) * 569;

let viewportheight = window.innerHeight;
scrollheight.value = (viewportheight / 900) * 632;

const getScrollWidth = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 900;
  return heights;
});

const getScrollHeight = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 520;
  return heights;
});

const isMassage = computed(() => {
  return (
    parmas.value != '' ||
    (parmas.typeId != null && parmas.typeId != -1) ||
    parmas.ageId[0] !== 0 ||
    (parmas.levelId != null && parmas.levelId != -1) ||
    parmas.ModuleId != 1 ||
    parmas.CompanyId != -1
  );
});

const components = computed(() => {
  if (type.value) return ScrollBoxCom;
  else return ScrollBoxCom2;
});

const dynamicSlotName = computed(() => {
  if (type.value) return 'solidBorderExcon';
  else return 'solidBorderCon';
});

const dynamicSlotChild = computed(() => {
  if (type.value) return 'solidBorderExbar';
  else return 'solidBorderEx';
});

const initDetail = async () => {
  try {
    let { data } = await exhibitShowpiece(InfomoduleId.value, previewId.value);
    info.value = data;
    console.log(info.value);
  } catch {}
};
const init = async (type?: number) => {
  try {
    if (loading.value) {
      return;
    }
    loading.value = true;
    // console.log(parmas);
    // let arr = parmas;
    // arr.ageId = arr.ageId[arr.ageId.length - 1];
    let { data } = await exhibitionData(localStorage.getItem('projectId'), {
      value: parmas.value,
      typeId: parmas.typeId,
      ageId: parmas.ageId[parmas.ageId.length - 1],
      levelId: parmas.levelId,
      ModuleId: parmas.ModuleId,
      CompanyId: parmas.CompanyId,
      pageNo: parmas.pageNo,
      pageSize: parmas.pageSize,
    });
    total.value = data.total;

    if (type) {
      list.value = data.data;
    } else {
      list.value = list.value.concat(data.data);
    }
    // console.log(list.value);
    scrollBox.value.scrollLeft = 0;
    topShow.value = false;
    // list.value = [];
    loading.value = false;
  } catch {
    loading.value = false;
  }
};
const closeType = (type: number) => {
  switch (type) {
    case 1:
      parmasList.value.typeId = '';
      parmas.typeId = -1;
      break;
    case 2:
      parmasList.value.ageId = '';
      parmas.ageId = [0];
      break;
    case 3:
      parmasList.value.levelId = '';
      parmas.levelId = -1;
      break;
    case 4:
      parmasList.value.ModuleId = '';
      parmas.ModuleId = 1;
      break;
    default:
      parmasList.value.CompanyId = '';
      parmas.CompanyId = -1;
      break;
  }
  init(2);
};
const emitTop = () => {
  //点击回到列表最左侧
  scrollBox.value.scrollLeft = 0;
  percentage.value = 0;
  topShow.value = false;
};
const preview = (id: number, moduleId: number) => {
  previewId.value = id;
  InfomoduleId.value = moduleId;
  initDetail();
};
const initSelect = async () => {
  //初始化所有下拉选项

  let res2 = await treeList(371999507447877); //类型
  let res3 = await treeList(372051821408325); //年代

  // datas.select2 = res1.data;
  datas.select3 = datas.select3.concat(res2.data);
  datas.select4 = datas.select4.concat(res3.data);
};
const initInfo = async () => {
  let { data } = await companysData(localStorage.getItem('projectId'));
  let DataList = await modulesData(localStorage.getItem('projectId'));
  let res = await treeList(371994471206981); //级别
  datas.select1 = datas.select1.concat(res.data);
  datas.moduleList = datas.moduleList.concat(DataList.data);
  datas.company = datas.company.concat(data);
};

initInfo();
initSelect();
const seachValue = () => {
  parmas.pageNo = 1;
  visible.value = false;
  init(2);
};
const seachInit = () => {
  visible.value = false;
  //   if (selectModuleId.value) {
  //     parmas.ModuleId = selectModuleId.value;
  //   }
  //   if (selecttypeId.value != -1) {
  //     parmas.typeId = selecttypeId.value;
  //   }
  //   if (selectCompanyId.value != -2) {
  //     parmas.CompanyId = selectCompanyId.value;
  //   }
  parmas.pageNo = 1;
  init(1);
};
const moduleListChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.ModuleId = context.option.label;
};
const select3Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.typeId = context.option.label;
};
const companyChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.CompanyId = context.option.label;
};
const select1Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.levelId = context.option.label;
};
// 年代
const ageIdChange = (e, context) => {
  //   console.log(context.node.labelnia)
  parmasList.value.ageId = context.node.label;
  //   parmasList.value.levelId = context.option.label;
};

const clear = () => {
  parmas.value = '';
  parmas.typeId = -1;
  parmas.ageId = [0];
  parmas.levelId = -1;
  parmas.ModuleId = 1;
  parmas.CompanyId = -1;
  selectModuleId.value = 1;
  selecttypeId.value = -1;
  selectCompanyId.value = -1;
  visible.value = false;
  parmasList.value.typeId = '';
  parmasList.value.ageId = '';
  parmasList.value.levelId = '';
  parmasList.value.ModuleId = '';
  parmasList.value.CompanyId = '';
  clseaSelcet.value = false;
  nextTick(() => {
    clseaSelcet.value = true;
  });
  init(2);
};
const pathInfo = (moduleId: number, e?: number) => {
  //查看展品详情
  store.exhibitsModuleId = moduleId;
  store.exhibitsShowpieceid = e;
  store.exhibitsInfoShow = true;

  //   router.push({
  //     name: route.meta.loopType ? pathLoop[2] : path[2],
  //     query: {
  //       showpieceid: e,
  //       moduleId: moduleId,
  //     },
  //   });
};
const blankRoute = () => {
  router.replace({ name: route.meta.loopType ? pathLoop[0] : path[0] }); // 替换为你要跳转的新路由路径
};
const handleScroll = (event) => {
  event.preventDefault(); // 阻止默认滚动行为
  const { deltaY } = event;

  // 获取滚动内容的 DOM 元素
  const contentEl = scrollBox.value;

  // 将滚动盒子向前滚动
  contentEl.scrollLeft += deltaY;
  scrollNumber.value = contentEl.scrollLeft;
  if (contentEl.scrollWidth > contentEl.clientWidth) {
    if (
      contentEl.scrollWidth < contentEl.scrollLeft + contentEl.clientWidth + 100 &&
      !loading.value &&
      list.value.length < total.value
    ) {
      parmas.pageNo = parmas.pageNo + 1;
      init();
    }
    nextTick(() => {
      const { scrollLeft, clientWidth, scrollWidth } = scrollBox.value;
      if (scrollLeft > 100) {
        topShow.value = true;
      }
      if (scrollLeft < 100) {
        topShow.value = false;
      }
      const newScrollPercentage = Math.floor((scrollLeft / (scrollWidth - clientWidth)) * 100);
      percentage.value = newScrollPercentage;
    });
  }
};
init();
onActivated(() => {
  // heartbeat.value
  if (heartbeat.value !== store.heartbeatCurrent) {
    scrollBox.value.scrollLeft = 0;
    scrollNumber.value = 0;

    clear();
  } else {
    nextTick(() => {
      if (scrollNumber.value) {
        scrollBox.value.scrollLeft = scrollNumber.value;
      }
    });
  }
  heartbeat.value = store.heartbeatCurrent;
});
const blankHome = () => {
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
// import { publicUrls } from '@/utils/minxin';
// import { commonDataStore } from '@/store';
// const commonStore = commonDataStore();
// import { useRouter, useRoute } from 'vue-router';
// const router = useRouter();
// const route = useRoute();
// const blankHome=()=>{
//     router.push({name:route.meta.loopType?'exhibitionHome' : 'templateedit'})
// }
</script>

<style scoped lang="less">
.Cultural-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%; 
  padding-top: 120px;
  padding-bottom: 40px;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  :deep(.t-drawer__content-wrapper) {
    z-index: 666;
    width: 470px !important;
  }
  :deep(.t-drawer__footer) {
    display: none;
  }
  :deep(.t-drawer__body) {
    padding: 0px;
    background: #d4cab7;
  }
}
.logo-box{ 
  width: 287px;
  height: 26px;  
  position: absolute;
  bottom: 20px;
  left: calc(50% - 143.5px);
   background-size: 100% 100%;
  background-repeat: no-repeat;
}
.Cultural-heard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
  margin-bottom:50px;
  .freeIcon {
     cursor: pointer;
    font-size: 34px; 
    line-height: 34px;
    color: rgba(87, 125, 134, 1);
  }
.heard-title {
    display: flex;
    align-items: center;
    i { 
      
      font-size: 36px;
      line-height: 36px;
      color: rgba(87, 125, 134, 1);
    }
    span {
      margin: 0 8px;
      font-family: SourceHanSerifCN-Bold;
      font-size: 36px;
      line-height: 56px;
      text-align: center;
      color: rgba(87, 125, 134, 1);
    }
  }
  .percentage-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: SourceHanSerifCN-Bold;
    font-size: 24px;
    line-height: 56px;
    text-align: center;
   color: rgba(63, 95, 92, 1);
    .doorIcon {
      cursor: pointer;
      font-size: 24px;
      line-height: 24px;
      color: rgba(87, 125, 134, 1);
      margin-left: 10px;
    }
    .freeIcon {
         font-size: 32px;  
      margin-left: 32px;
    }
    .screen {
        display: flex;
      height: 32px; 
      position: relative;
      .doorIcon{
            font-size: 32px;
      line-height: 32px;
      }
      .seach-Icon-dot {
        position: absolute;
        top: -1px;  
        right: -1px;
        width: 4px; 
        height: 4px;
        background: rgba(87, 125, 134, 1);
        border-radius: 50%;
      }
    }
    :deep(.t-popup__arrow) {
    
    // background: rgba(147, 178, 170, 1);
    border-color: rgba(87, 125, 134, 1) !important;
  }
  .t-popup__arrow::before {
    background: rgba(87, 125, 134, 1);
  }
    :deep(.t-popup) {
      color: #f2f2f0;
    } 
    :deep(.t-popup__content) {
      padding: 2px 12px;
      height: 24px;
      font-size: 13px;
      line-height: 20px;
        background: rgba(87, 125, 134, 1);
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    }
    :deep(.t-popup__arrow::before) {
       background: rgba(87, 125, 134, 1);
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
      margin-left: calc(-8px / 3);
    }
    :deep(.t-popup[data-popper-placement^='bottom'] .t-popup__content--arrow) {
      margin-top: 8px;
    } 
  } 
  
} 

.Cultural-heard1{
    margin-bottom: 50px;
}
.content-child{
  position: relative;
  display: flex;
  flex-direction: column; 
width: calc(100% - 100px);  
margin-left: 100px;
// margin: 0 auto;
}
.right-type { 
  display: flex !important; 
  flex-wrap: wrap;
  // grid-template-columns: repeat(4, 1fr);  
  grid-gap: 0px;
  padding-left: 90px !important;
  padding-right: 0px !important
  // display: flex;
  // flex-wrap: wrap;
  // justify-content: flex-start;;
}
.wap-right-type {
  display: flex !important;
  flex-wrap: wrap;
  padding-right: 0px !important;
  height: 428px !important;
}
.right-scroll {
  display: flex;
  height: auto;
  margin-left: 100px;
  margin-right: 100px; 
  width: 100%;
   min-height: 400px;
}
.right-scroll-min{
  display: flex;
  justify-content: center !important;
  margin: 30px auto;
}
.right-scroll::-webkit-scrollbar {
  display: none;
}
.item-parent-wrap {
  width: 278px;
}
.item-parent-nowrap {
  width: 278px;
}
.item-parent {
  // flex: 1 0 16%;
//   height: 438px;
  margin-right: 36px;
  margin-bottom: 30px;
  flex-shrink: 0;
}
.scroll-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 278px;
  height: 245px;
  background: #fff;
  filter: drop-shadow(0px 4px 13px rgba(87, 125, 134, 0.10));
}



.cover-img {
    display: flex;
  position: relative;
  width: 278px;
  height: 186px; 
  object-fit: contain;
 background: rgba(146, 175, 168, 0.34);
 overflow: hidden;
 .cover-img-url{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s;
 } 
}
 .cover-img:hover{
        .cover-img-url{
             transform: scale(1.2);
        }
    } 

.cover-name {
  // display: flex;
  // align-items: center; 
  // justify-content: center;  
  width: 100%;  
 height: 60px;   
  padding: 0 13px; 
  overflow: hidden;    
  text-overflow: ellipsis;   
  white-space: nowrap;  
 font-family: SourceHanSerifCN-Bold;
  font-size: 17px;  
  line-height: 60px;  
  color: rgba(63, 95, 92, 1);
  text-align: center; 
  
}
.scroll-item:hover{
  
  .cover-name{
    background: rgba(146, 175, 168, 0.8);
    color: #fff;
    
  }
}
.list-item {
  display: flex;
  align-items: center;
  margin-right: 32px;
  margin-bottom: 30px;
  span {
    font-family: PingFang SC;
    font-size: 18px;
    line-height: 28px;
    color: rgba(85, 59, 42, 1);
  }
  .doorIcon {
    cursor: pointer;
    font-size: 16px;
    margin-left: 4px;
    color: rgba(85, 59, 42, 1);
  }
} 
.seach-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; 
  padding: 110px 54px;
  background: rgba(235, 236, 233, 1);
}
.seach-box-title {
 font-family: PingFangSC, PingFang SC;
font-weight: 400; 
font-size: 22px;
color: rgba(63, 95, 92, 1);
line-height: 35px;
margin-bottom: 32px;
}
.seach-items {
  position: relative;
  display: flex;
  width: 100%;
height: 40px; 
background: transparent;
border-radius: 4px;
margin-bottom: 44px;
border: 1px solid rgba(63, 95, 92, .2);
}
.input-box-left {
  width: 100%;
  height: 40px;
  :deep(.t-input__wrap) {
    width: 100%;
    height: 40px;
  }
  :deep(input::placeholder){ 
      font-weight: 400;
font-size: 16px;
color: rgba(63, 95, 92, .4);
line-height: 24px;
  }
  :deep(.t-input) { 
    padding: 8px 12px;
    width: 100%;
    height: 40px;
    background: transparent;
    border: none !important;
  color: rgba(63, 95, 92, 1);
    .t-input__inner {
      font-size: 16px;
      color: rgba(63, 95, 92, 1);
    }
  }
  :deep(.t-input:hover) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input:hover) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input--focused) {
    box-shadow: none;
    border-color: transparent;
  }
}
.button-style {
  position: relative;
  overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  cursor: pointer;
  width: 80px; 
height: 40px;
border-radius: 4px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 16px;
color: rgba(63, 95, 92, 1);
line-height: 24px; 

}

.btn-box {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 120px;
  .btn-box-item1 {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
   width: 136px;
height: 48px;
border-radius: 4px;
border: 1px solid rgba(63, 95, 92, .2);
margin-right: 14px;
    span {
     font-family: PingFangSC, PingFang SC;
font-size: 16px; 
color: rgba(63, 95, 92, 1);
line-height: 24px;  
    } 
  }
  .btn-box-item2 { 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
   flex: 1;
height: 48px; 
background: rgba(146, 175, 168, 1);
border-radius: 4px;  
    span {
      font-family: PingFang SC;
font-size: 16px; 
color: #FFFFFF;
line-height: 24px;
    }
  }
}
.seach-item {
  position: relative;
  display: flex;
  justify-content: space-between; 
  align-items: center; 
height: 28px;

  margin-bottom: 40px;
  span {
    position: absolute;
    left: 0;
    top: 50%;
    height: 32px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: 20%;
    font-weight: 400;
font-size: 16px;
color: rgba(63, 95, 92, 1);
line-height: 28px;
  }
  width: 100%;
  // padding: 20px 0;
  :deep(.t-select__right-icon) {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  :deep(.t-input--focused) {
    box-shadow: none !important;
  }
  // :deep(.t-select__wrap){
  //   height: 32px;
  // }
  // :deep(.t-select-input){
  //   height: 32px;
  // }
  :deep(.t-cascader__icon) {
    width: 20px;
    height: 20px;
  }
  :deep(.t-input:hover) {
    border-color: transparent !important;
  }
  :deep(.t-input__inner) {
    padding-left: 20%;
    font-weight: 400;
font-size: 16px;
color: rgba(63, 95, 92, 1);
line-height: 24px;
    line-height: 28px;
  }
  :deep(.t-select__wrap) {
    background: transparent;
  }
  :deep(.t-select-input) {
    background: transparent;
    .t-input {
      background: transparent;
      border: none;
    }
  }
  :deep(.t-input__inner) {
    height: 28px;
  }

  :deep(.t-input:hover) {
    border-color: transparent;
  }
  :deep(.t-input) {
    height: 28px;
  }
  :deep(.t-select) {  
    .t-input {
      background: transparent; 
      border: none;
    } 
    .t-input.t-input--suffix > .t-input__suffix {
      font-size: 20px;
      color: rgba(63, 95, 92, 1);
    }
  }
}
.is-null { 
  display: flex; 
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  margin-top: 50px;
  margin-left: -150px;
  text-align: center;
  position: fixed;
  left: 52%;
  img{ 
    width: 190px;
    height: 190px;
    object-fit: contain;
  }
  span {
    font-size: 16px;
    line-height: 32px;
    color: #92AFA8;
  }
}
.solidBorder-child1 {
  width: 100%;
  height: 4px;
  border-radius: 1.055px; 
  opacity: 0.5;
  background: rgba(190, 212, 206, 1);
  box-sizing: border-box;
 
}
.solidBorder-child2 {
  width: 4px;
  height: 100%;
}
.scrollType1{ 
  :deep(.right-scroll){
    margin-left: 0;
  }
.right-box{
  width: 80px;
  height: 200px;
  
}
    :deep(.unit-exbit-null-remarks-info){
        // margin: 0 40px;
        margin-right: 0;
        width: auto;
         max-height: auto !important;
    } 
    .scroll-item {
 
  width: 280px;
 
}

    .scroll-item{
        height: 340px; 
    }
    .cover-img{
        width: 280px;
height: 280px;

    }
//     .cover-name {
//  width: 274px;
//  height: 60px;
//   padding: 0 4px;
//   display: -webkit-box;
//   -webkit-line-clamp: 2; 
//   -webkit-box-orient: vertical;
//   overflow: hidden;
//   text-overflow: ellipsis;
//   white-space: pre-wrap;
//   font-family: SourceHanSerifCN-Bold;
//   font-size: 18px;
//   line-height: 28px; 
//   text-align: center;
//   color: #22151F;
// }
:deep(.templatestyle1-scroll-box-tumb){
    
    align-items: center;

}
.item-parent{
    margin-bottom: 0px;
    margin-right: 20px;
}
}
.scrollType2{
:deep(.right-scroll){
padding-left: 0px !important;
}
.item-parent{
  width: calc(25% - 27px);
  height: 245px;
  margin-right: 36px;
  .scroll-item{
     width: 100%;
     height: 245px;
  }
  .cover-img{
    width: 100%;
  }
}
.content-child{
  position: relative;
  display: flex;
  flex-direction: column;  
width: calc(100% - 200px);     

margin: 0 auto;
}
:deep(.right-type){
    margin-right: 0;
    margin-left: 0;
}
}
:deep(.templatestyle1-scroll-box-tumb){
    display: flex;
    justify-content: center;
img{
    width: 32px; 
    height: 32px;
}
}
#seach-box-style3-id{
    :deep(.t-cascader__menu){
        background: #fff;
        padding-left: 0;
padding-right: 0;
    }
    :deep(.t-select-option){ 
      color: #3F5F5C;
    }
    :deep(.t-cascader__item.t-is-expanded){
        background-color: rgba(63, 95, 92, .1) !important;
    }
    :deep(.t-select-option.t-is-selected){
       color: #3F5F5C !important;
       background-color: rgba(63, 95, 92, .1) !important;
    }
    :deep(.t-cascader__item:hover){ 
        background-color: rgba(63, 95, 92, .1) !important;
    }
:deep(.t-popup__content){
    background: #fff;
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
border-radius: 6px;

}
:deep(.t-select__list){
padding-left: 0;
padding-right: 0; 
}
:deep(.t-select-option){ 
   span{
       margin-left: 20px;
   } 
   
}
:deep(.t-select-option:hover){
       background-color: rgba(63, 95, 92, .1) !important;
   }
}
@media screen and (min-width: 2150px)  {
  .scrollType1{
    // :deep(.unit-exbit-null-remarks-info){
    //     margin: 0 52px;
        
    //     // margin-right: 40px;
    //     width: auto;
    // }
  
}
}  
:deep(.t-cascader__item){
  color: #3F5F5C !important; 
}
:deep(.t-cascader__item.t-is-expanded){
  color: #3F5F5C !important; 
}
:deep(.t-cascader__item.t-is-expanded .t-icon-chevron-right){
  color: #3F5F5C !important;
}

:deep(.t-select-option.t-is-selected span){
   color: #3F5F5C !important;
}
</style>
